package com.pxmeta.user.entity.vo;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.time.LocalDateTime;

@Data
public class UserVisitVO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty("用户id")
    private Long userId;

    @ApiModelProperty("目标用户id")
    private Long targetUserId;

    @ApiModelProperty("用户头像")
    private String avatar;

    @ApiModelProperty("昵称")
    private String nickname;

    @ApiModelProperty("用户昵称")
    private String username;

    @ApiModelProperty("访问模式 0：主页；1：聊天框")
    private Integer visitMode;

    @ApiModelProperty("访问次数")
    private Integer visitNum;

    @ApiModelProperty("圈子ID")
    private Long circleId;

    @ApiModelProperty("访问日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime visitDate;
}
